package org.example.infrastructure.dao;


import org.apache.ibatis.annotations.Mapper;
import org.example.infrastructure.dao.po.ProductInventoryPO;

import java.util.Map;

/**
 * @author yinghuashen
 * @version 1.0
 * @description
 * @date 2025/3/7 00:24
 */

@Mapper
public interface IProductInventoryDao {

    ProductInventoryPO getProductInventoryById(String productId);

    int decreaseProductAvailableStock(Map<String, Object> params);

    int rollbackProductAvailableStock(Map<String, Object> params);
}
